//
//  YYYFriendViewController.swift
//  HotNews
//
//  Created by yang on 2017/9/23.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

import UIKit

class YYYFriendViewController: YYYBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }

    @objc private func nextAction()
    {
        let vc = YYYFriendViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension YYYFriendViewController
{
    override func setupTableView() {
        super.setupTableView()
        customNavigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(nextAction))
    }
}
